﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BAL.Entities;
using BAL.Components;
using System.Data;

namespace DigitalAnts.Admin
{
    public partial class ShowEmployee : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                clsEmployee obj = new clsEmployee();
                obj.EmployeeID = Convert.ToInt32(Request["EmployeeID"]);
                DataTable dt = clsEmployeeBAL.doEmployeeSelectListById(obj);
                txtusername.Text = dt.Rows[0]["colUserName"].ToString();
                txtaddress.Text = dt.Rows[0]["colAddress"].ToString();
                txtcellphone.Text = dt.Rows[0]["colCellPhone"].ToString();
                txthomephone.Text = dt.Rows[0]["colHomePhone"].ToString();
                txtemail.Text = dt.Rows[0]["colEmail"].ToString();
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Response.Redirect("~/Admin/NewEmployee.aspx");
        }
    }
}